Add 0017-Define-POSIX_SIGNALS-for-GNU-Hurd.patch.
authorRob Browning <rlb@defaultvalue.org>
Sun, 29 Jan 2012 19:39:56 +0000 (13:39 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 29 Jan 2012 19:40:03 +0000 (13:40 -0600)
Thanks to Samuel Thibault <sthibault@debian.org> for the report and
the patch.

Closes: #650976
19 files changed:
1  2 
debian/.git-dpm
debian/patches/0001-Prefer-usr-share-info-emacs-23-over-usr-share-info.patch
debian/patches/0002-Run-debian-startup-and-set-debian-emacs-flavor.patch
debian/patches/0003-Remove-files-that-appear-to-be-incompatible-with-the.patch
debian/patches/0004-Adjust-documentation-references-for-Debian.patch
debian/patches/0005-Cause-the-build-to-fail-if-liblockfile-isn-t-selecte.patch
debian/patches/0006-Avoid-silently-losing-mail-via-fakemail.patch
debian/patches/0007-Modify-the-output-of-version-to-indicate-Debian-modi.patch
debian/patches/0008-Look-for-NEWS-in-order-to-find-etc-rather-than-GNU.patch
debian/patches/0009-Invoke-the-correct-xmlstarlet-executable-on-Debian-s.patch
debian/patches/0010-Fix-startup-hang-on-Debian-GNU-kFreeBSD.patch
debian/patches/0011-Don-t-clear-FONTCONFIG_LIBS-and-FONTCONFIG_CFLAGS-in.patch
debian/patches/0012-Fix-a-tty-related-preprocessor-inclusion-error-affec.patch
debian/patches/0013-Expect-0-from-kill-for-zombies-on-GNU-Hurd.patch
debian/patches/0014-Add-i386-to-cpp_undefs-in-configure.in-to-fix-i386-m.patch
debian/patches/0015-Look-for-crt1.o-in-the-correct-multiarch-location.patch
debian/patches/0016-Use-CRT_DIR-to-find-crt-.o-on-ppc64.patch
debian/patches/0017-Define-POSIX_SIGNALS-for-GNU-Hurd.patch
debian/patches/series

diff --cc debian/.git-dpm
index 3e65993e29a00fdcb9fcba427999d68b5e62b96c,0000000000000000000000000000000000000000..f10db34eb1eaf74ca71e402677fca6db43c9bba2
mode 100644,000000..100644
--- /dev/null
@@@ -1,8 -1,0 +1,8 @@@
- f6ec40aeab76b44285f6348e748e9c4f44474d19
- f6ec40aeab76b44285f6348e748e9c4f44474d19
 +# see git-dpm(1) from git-dpm package
++e46e3fe4cd794f1c1e50a5bc445d184e2f82ce38
++e46e3fe4cd794f1c1e50a5bc445d184e2f82ce38
 +7aee3de6fd6bca44751754b10a338947fa947b1c
 +7aee3de6fd6bca44751754b10a338947fa947b1c
 +emacs23_23.3+1.orig.tar.bz2
 +80b3822579eddfc120641c5a181eb0b5c7a0667d
 +23065394
index 4d767285453b0dfbfabcde0286bbaa3d3ba352ec,0000000000000000000000000000000000000000..6bce3421d154cb471f5020f280caa7a10c0f1f05
mode 100644,000000..100644
--- /dev/null
@@@ -1,35 -1,0 +1,32 @@@
- -- 
- 1.7.6.3
 +From 207579eda5c7603a93d3f0ffed09596850e33ace Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:21 -0500
 +Subject: Prefer /usr/share/info/emacs-23 over /usr/share/info.
 +
 +Emacs will prefer /usr/share/info/emacs-23 over /usr/share/info.
 +
 +The value of Info-default-directory-list has been augmented via
 +site-init.el to include /usr/share/info/emacs-23 before
 +/usr/share/info.
 +---
 + lisp/site-init.el |   11 +++++++++++
 + 1 files changed, 11 insertions(+), 0 deletions(-)
 + create mode 100644 lisp/site-init.el
 +
 +diff --git a/lisp/site-init.el b/lisp/site-init.el
 +new file mode 100644
 +index 0000000..d8d6256
 +--- /dev/null
 ++++ b/lisp/site-init.el
 +@@ -0,0 +1,11 @@
 ++
 ++;; Add the flavor specific directory for Debian.
 ++(setq Info-default-directory-list
 ++      (let ((result nil)
 ++            (found-match nil))
 ++        (dolist (elt Info-default-directory-list (nreverse result))
 ++          (if (and (not found-match) (equal elt "/usr/share/info/"))
 ++              (progn
 ++                (push "/usr/share/info/emacs-23" result)
 ++                (setq found-match t)))
 ++          (push elt result))))
index bd1a8ee1738956937f3f8d5202855cd924525259,0000000000000000000000000000000000000000..d8b0a12dfe80d840bd51a4b1e1124010863a0dba
mode 100644,000000..100644
--- /dev/null
@@@ -1,58 -1,0 +1,55 @@@
- -- 
- 1.7.6.3
 +From 949a2c6776362b398896f819bbac67c0c3a2728b Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:22 -0500
 +Subject: Run debian-startup and set debian-emacs-flavor.
 +
 +Emacs runs debian-startup and sets debian-emacs-flavor.
 +
 +* Emacs runs debian-startup during the startup process unless
 +  site-run-file is false.
 +
 +* The global variable debian-emacs-flavor is bound to 'emacs23.
 +  Author: Rob Browning <rlb@defaultvalue.org>
 +---
 + lisp/startup.el |   21 +++++++++++++++++++--
 + 1 files changed, 19 insertions(+), 2 deletions(-)
 +
 +diff --git a/lisp/startup.el b/lisp/startup.el
 +index 471b688..a77e3fa 100644
 +--- a/lisp/startup.el
 ++++ b/lisp/startup.el
 +@@ -393,6 +393,10 @@ Warning Warning!!!  Pure space overflow    !!!Warning Warning
 +   :type 'directory
 +   :initialize 'custom-initialize-delay)
 + 
 ++(defconst debian-emacs-flavor 'emacs23
 ++  "A symbol representing the particular debian flavor of emacs running.
 ++Something like 'emacs20, 'xemacs20, etc.")
 ++
 + (defun normal-top-level-add-subdirs-to-load-path ()
 +   "Add all subdirectories of current directory to `load-path'.
 + More precisely, this uses only the subdirectories whose names
 +@@ -955,8 +959,21 @@ opening the first frame (e.g. open a connection to an X server).")
 +     ;; be loaded from site-run-file and wants to test if -q was given
 +     ;; should check init-file-user instead, since that is already set.
 +     ;; See cus-edit.el for an example.
 +-    (if site-run-file
 +-     (load site-run-file t t))
 ++
 ++    ;; Original upstream startup
 ++    ;; (if site-run-file
 ++    ;;     (load site-run-file t t))
 ++    ;;
 ++
 ++    ;; Debian startup
 ++     (if site-run-file
 ++        (progn
 ++          ;; Load all the debian package snippets.
 ++          ;; It's in here because we want -q to kill it too.
 ++          (if (load "debian-startup" t t nil)
 ++              (debian-startup debian-emacs-flavor))
 ++          ;; Now the normal site file...
 ++          (load site-run-file t t nil)))
 + 
 +     ;; Sites should not disable this.  Only individuals should disable
 +     ;; the startup screen.
index ee4b0dc32ed919b450a3cd8a7bcfebf960b489a4,0000000000000000000000000000000000000000..ae35482b6768d544d4e7fecad33f3d477d8811e4
mode 100644,000000..100644
--- /dev/null
@@@ -1,704 -1,0 +1,701 @@@
- -- 
- 1.7.6.3
 +From c182c7be6589ad19958a76596b2d215fb6017ec3 Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:24 -0500
 +Subject: Remove files that appear to be incompatible with the DFSG.
 +
 +Files that appear to be incompatible with the DFSG have been removed.
 +
 +A number of files have been removed from this package because their
 +licenses are not compatible with the Debian Free Software Guidelines
 +(DFSG), or because it wasn't completely clear that their licenses are
 +compatible.
 +
 +In particular, all of the files which are covered under the GFDL and
 +have invariant sections have been removed in accordance with this
 +General Resolution: http://www.debian.org/vote/2006/vote_001.
 +
 +The files that have been removed, but still appear to be
 +distributable, have been moved to packages in Debian's non-free
 +section.
 +
 +Author: Rob Browning <rlb@defaultvalue.org>
 +Added-by: Rob Browning <rlb@defaultvalue.org>
 +Status: new
 +---
 + Makefile.in          |   30 +---
 + configure.in         |    4 +-
 + doc/misc/Makefile.in |  490 +-------------------------------------------------
 + lisp/help.el         |   10 +-
 + 4 files changed, 16 insertions(+), 518 deletions(-)
 +
 +diff --git a/Makefile.in b/Makefile.in
 +index 32a09ff..41cf979 100644
 +--- a/Makefile.in
 ++++ b/Makefile.in
 +@@ -139,12 +139,7 @@ MAN_PAGES=b2m.1 ctags.1 ebrowse.1 emacs.1 emacsclient.1 etags.1 \
 + # since there are now many packages documented with the texinfo
 + # system, it is inappropriate to imply that it is part of Emacs.
 + infodir=@infodir@
 +-INFO_FILES=ada-mode auth autotype calc ccmode cl dbus dired-x ebrowse        \
 +-           ede ediff edt eieio efaq eintr elisp emacs emacs-mime epa erc \
 +-        eshell eudc flymake forms gnus idlwave info mairix-el        \
 +-        message mh-e newsticker nxml-mode org pcl-cvs pgg rcirc      \
 +-        reftex remember sasl sc semantic ses sieve smtpmail speedbar \
 +-        tramp url vip viper widget woman
 ++INFO_FILES=efaq
 + 
 + # Directory for local state files for all programs.
 + localstatedir=@localstatedir@
 +@@ -270,7 +265,7 @@ EMACSFULL = `echo emacs-${version}${EXEEXT} | sed '$(TRANSFORM)'`
 + SUBDIR = lib-src src lisp
 + 
 + # The subdir makefiles created by config.status.
 +-SUBDIR_MAKEFILES = lib-src/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispref/Makefile doc/lispintro/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile leim/Makefile lisp/Makefile
 ++SUBDIR_MAKEFILES = lib-src/Makefile doc/misc/Makefile src/Makefile oldXMenu/Makefile lwlib/Makefile leim/Makefile lisp/Makefile
 + 
 + # Subdirectories to install, and where they'll go.
 + # lib-src's makefile knows how to install it, so we don't do that here.
 +@@ -357,10 +352,7 @@ Makefile: config.status $(srcdir)/src/config.in \
 +           $(srcdir)/Makefile.in \
 +           $(srcdir)/src/Makefile.in \
 +           $(srcdir)/lib-src/Makefile.in \
 +-          $(srcdir)/doc/emacs/Makefile.in \
 +           $(srcdir)/doc/misc/Makefile.in \
 +-          $(srcdir)/doc/lispref/Makefile.in \
 +-          $(srcdir)/doc/lispintro/Makefile.in \
 +           $(srcdir)/oldXMenu/Makefile.in \
 +           $(srcdir)/lwlib/Makefile.in \
 +           $(srcdir)/leim/Makefile.in \
 +@@ -701,10 +693,7 @@ mostlyclean: FRC
 +      (cd oldXMenu; $(MAKE) $(MFLAGS) mostlyclean)
 +      (cd lwlib;    $(MAKE) $(MFLAGS) mostlyclean)
 +      (cd lib-src;  $(MAKE) $(MFLAGS) mostlyclean)
 +-     -(cd doc/emacs &&   $(MAKE) $(MFLAGS) mostlyclean)
 +      -(cd doc/misc &&   $(MAKE) $(MFLAGS) mostlyclean)
 +-     -(cd doc/lispref &&   $(MAKE) $(MFLAGS) mostlyclean)
 +-     -(cd doc/lispintro &&   $(MAKE) $(MFLAGS) mostlyclean)
 +      (cd leim;     $(MAKE) $(MFLAGS) mostlyclean)
 + 
 + ### `clean'
 +@@ -720,10 +709,7 @@ clean: FRC
 +      (cd oldXMenu; $(MAKE) $(MFLAGS) clean)
 +      (cd lwlib;    $(MAKE) $(MFLAGS) clean)
 +      (cd lib-src;  $(MAKE) $(MFLAGS) clean)
 +-     -(cd doc/emacs &&   $(MAKE) $(MFLAGS) clean)
 +      -(cd doc/misc &&   $(MAKE) $(MFLAGS) clean)
 +-     -(cd doc/lispref &&   $(MAKE) $(MFLAGS) clean)
 +-     -(cd doc/lispintro &&   $(MAKE) $(MFLAGS) clean)
 +      (cd leim;     $(MAKE) $(MFLAGS) clean)
 + 
 + ### `bootclean'
 +@@ -744,10 +730,7 @@ distclean: FRC
 +      (cd oldXMenu; $(MAKE) $(MFLAGS) distclean)
 +      (cd lwlib;    $(MAKE) $(MFLAGS) distclean)
 +      (cd lib-src;  $(MAKE) $(MFLAGS) distclean)
 +-     (cd doc/emacs &&    $(MAKE) $(MFLAGS) distclean)
 +      (cd doc/misc &&    $(MAKE) $(MFLAGS) distclean)
 +-     (cd doc/lispref &&    $(MAKE) $(MFLAGS) distclean)
 +-     (cd doc/lispintro &&    $(MAKE) $(MFLAGS) distclean)
 +      (cd leim;     $(MAKE) $(MFLAGS) distclean)
 +      (cd lisp;     $(MAKE) $(MFLAGS) distclean)
 +      ${top_distclean}
 +@@ -760,10 +743,7 @@ bootstrap-clean: FRC
 +      (cd oldXMenu; $(MAKE) $(MFLAGS) maintainer-clean)
 +      (cd lwlib;    $(MAKE) $(MFLAGS) maintainer-clean)
 +      (cd lib-src;  $(MAKE) $(MFLAGS) maintainer-clean)
 +-     -(cd doc/emacs &&   $(MAKE) $(MFLAGS) maintainer-clean)
 +      -(cd doc/misc &&   $(MAKE) $(MFLAGS) maintainer-clean)
 +-     -(cd doc/lispref &&   $(MAKE) $(MFLAGS) maintainer-clean)
 +-     -(cd doc/lispintro &&   $(MAKE) $(MFLAGS) maintainer-clean)
 +      (cd leim;     $(MAKE) $(MFLAGS) maintainer-clean)
 +      (cd lisp;     $(MAKE) $(MFLAGS) bootstrap-clean)
 +      ${top_bootclean}
 +@@ -808,10 +788,7 @@ dist:
 + .PHONY: info dvi dist check html
 + 
 + info-real: 
 +-     (cd doc/emacs; $(MAKE) $(MFLAGS) info)
 +      (cd doc/misc; $(MAKE) $(MFLAGS) info)
 +-     (cd doc/lispref; $(MAKE) $(MFLAGS) info)
 +-     (cd doc/lispintro; $(MAKE) $(MFLAGS) info)
 + 
 + force-info:
 + # Note that man/Makefile knows how to put the info files in $(srcdir),
 +@@ -850,10 +827,7 @@ check-info-dir: info
 +      echo "info/dir is OK"
 + 
 + dvi:
 +-     (cd doc/emacs; $(MAKE) $(MFLAGS) dvi)
 +      (cd doc/misc; $(MAKE) $(MFLAGS) dvi)
 +-     (cd doc/lispref; $(MAKE) $(MFLAGS) elisp.dvi)
 +-     (cd doc/lispintro; $(MAKE) $(MFLAGS) emacs-lisp-intro.dvi)
 + 
 + #### Bootstrapping.
 + 
 +diff --git a/configure.in b/configure.in
 +index 275e812..baacfe4 100644
 +--- a/configure.in
 ++++ b/configure.in
 +@@ -3118,8 +3118,8 @@ AC_EGREP_CPP(yes..yes,
 +      CPP_NEED_TRADITIONAL=yes)
 + 
 + AC_OUTPUT(Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile \
 +-     doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile \
 +-     doc/lispref/Makefile src/Makefile.c:src/Makefile.in \
 ++     doc/misc/Makefile \
 ++     src/Makefile.c:src/Makefile.in \
 +      lwlib/Makefile lisp/Makefile leim/Makefile, [
 + 
 + ### Make the necessary directories, if they don't exist.
 +diff --git a/doc/misc/Makefile.in b/doc/misc/Makefile.in
 +index 9e93be4..b1dd019 100644
 +--- a/doc/misc/Makefile.in
 ++++ b/doc/misc/Makefile.in
 +@@ -38,104 +38,10 @@ MAKEINFO = makeinfo --force
 + 
 + # Also add new entries to INFO_FILES in the top-level Makefile.in.
 + INFO_TARGETS = \
 +-     $(infodir)/ada-mode \
 +-     $(infodir)/auth \
 +-     $(infodir)/autotype \
 +-     $(infodir)/calc \
 +-     $(infodir)/ccmode \
 +-     $(infodir)/cl \
 +-     $(infodir)/dbus \
 +-     $(infodir)/dired-x \
 +-     $(infodir)/ebrowse \
 +-     $(infodir)/ede \
 +-     $(infodir)/ediff \
 +-     $(infodir)/edt \
 +-     $(infodir)/eieio \
 +-     $(infodir)/emacs-mime \
 +-     $(infodir)/epa \
 +-     $(infodir)/erc \
 +-     $(infodir)/eshell \
 +-     $(infodir)/eudc \
 +-     $(infodir)/efaq \
 +-     $(infodir)/flymake \
 +-     $(infodir)/forms \
 +-     $(infodir)/gnus \
 +-     $(infodir)/idlwave \
 +-     $(infodir)/info \
 +-     $(infodir)/mairix-el \
 +-     $(infodir)/message \
 +-     $(infodir)/mh-e \
 +-     $(infodir)/newsticker \
 +-     $(infodir)/nxml-mode \
 +-     $(infodir)/org \
 +-     $(infodir)/pcl-cvs \
 +-     $(infodir)/pgg \
 +-     $(infodir)/rcirc \
 +-     $(infodir)/remember \
 +-     $(infodir)/reftex \
 +-     $(infodir)/sasl \
 +-     $(infodir)/sc \
 +-     $(infodir)/semantic \
 +-     $(infodir)/ses \
 +-     $(infodir)/sieve \
 +-     $(infodir)/smtpmail \
 +-     $(infodir)/speedbar \
 +-     $(infodir)/tramp \
 +-     $(infodir)/url \
 +-     $(infodir)/vip \
 +-     $(infodir)/viper \
 +-     $(infodir)/widget \
 +-     $(infodir)/woman
 ++     $(infodir)/efaq
 + 
 + DVI_TARGETS = \
 +-     ada-mode.dvi \
 +-     auth.dvi \
 +-     autotype.dvi \
 +-     calc.dvi \
 +-     cc-mode.dvi \
 +-     cl.dvi \
 +-     dbus.dvi \
 +-     dired-x.dvi \
 +-     ebrowse.dvi \
 +-     ede.dvi \
 +-     ediff.dvi \
 +-     edt.dvi \
 +-     eieio.dvi \
 +-     emacs-mime.dvi \
 +-     epa.dvi \
 +-     erc.dvi \
 +-     eshell.dvi \
 +-     eudc.dvi \
 +-     faq.dvi \
 +-     flymake.dvi \
 +-     forms.dvi \
 +-     gnus.dvi \
 +-     idlwave.dvi \
 +-     info.dvi \
 +-     mairix-el.dvi \
 +-     message.dvi \
 +-     mh-e.dvi \
 +-     newsticker.dvi \
 +-     nxml-mode.dvi \
 +-     org.dvi \
 +-     pcl-cvs.dvi \
 +-     pgg.dvi \
 +-     rcirc.dvi \
 +-     reftex.dvi \
 +-     remember.dvi \
 +-     sasl.dvi \
 +-     sc.dvi \
 +-     semantic.dvi \
 +-     ses.dvi \
 +-     sieve.dvi \
 +-     smtpmail.dvi \
 +-     speedbar.dvi \
 +-     tramp.dvi \
 +-     url.dvi \
 +-     vip.dvi \
 +-     viper.dvi \
 +-     widget.dvi \
 +-     woman.dvi
 ++     faq.dvi
 + 
 + PDF_TARGETS = \
 +      ada-mode.pdf \
 +@@ -198,10 +104,7 @@ TEXI2PDF = texi2pdf
 + ENVADD = TEXINPUTS="$(srcdir):$(TEXINPUTS)" MAKEINFO="$(MAKEINFO) -I$(srcdir)"
 + 
 + 
 +-info: $(infodir) $(INFO_TARGETS)
 +-
 +-$(infodir):
 +-     mkdir $@
 ++info: $(INFO_TARGETS)
 + 
 + dvi: $(DVI_TARGETS)
 + 
 +@@ -213,150 +116,6 @@ pdf: $(PDF_TARGETS)
 + # In a distribution of Emacs, the Info files should be up to date.
 + 
 + ## "short" target names for convenience, to just rebuild one manual.
 +-ada-mode : $(infodir)/ada-mode
 +-$(infodir)/ada-mode: ada-mode.texi
 +-     cd $(srcdir); $(MAKEINFO) ada-mode.texi
 +-ada-mode.dvi: ada-mode.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/ada-mode.texi
 +-ada-mode.pdf: ada-mode.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/ada-mode.texi
 +-
 +-auth : $(infodir)/auth
 +-$(infodir)/auth: auth.texi
 +-     cd $(srcdir); $(MAKEINFO) auth.texi
 +-auth.dvi: auth.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/auth.texi
 +-auth.pdf: auth.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/auth.texi
 +-
 +-autotype : $(infodir)/autotype
 +-$(infodir)/autotype: autotype.texi
 +-     cd $(srcdir); $(MAKEINFO) autotype.texi
 +-autotype.dvi: autotype.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/autotype.texi
 +-autotype.pdf: autotype.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/autotype.texi
 +-
 +-calc : $(infodir)/calc
 +-$(infodir)/calc: calc.texi
 +-     cd $(srcdir); $(MAKEINFO) calc.texi
 +-calc.dvi: calc.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/calc.texi
 +-calc.pdf: calc.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/calc.texi
 +-
 +-ccmode : $(infodir)/ccmode
 +-$(infodir)/ccmode: cc-mode.texi
 +-     cd $(srcdir); $(MAKEINFO) cc-mode.texi
 +-cc-mode.dvi: cc-mode.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/cc-mode.texi
 +-cc-mode.pdf: cc-mode.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/cc-mode.texi
 +-
 +-cl : $(infodir)/cl
 +-$(infodir)/cl: cl.texi
 +-     cd $(srcdir); $(MAKEINFO) cl.texi
 +-cl.dvi: cl.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/cl.texi
 +-cl.pdf: cl.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/cl.texi
 +-
 +-dbus : $(infodir)/dbus
 +-$(infodir)/dbus: dbus.texi
 +-     cd $(srcdir); $(MAKEINFO) dbus.texi
 +-dbus.dvi: dbus.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/dbus.texi
 +-dbus.pdf: dbus.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/dbus.texi
 +-
 +-dired-x : $(infodir)/dired-x
 +-$(infodir)/dired-x: dired-x.texi
 +-     cd $(srcdir); $(MAKEINFO) dired-x.texi
 +-dired-x.dvi: dired-x.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/dired-x.texi
 +-dired-x.pdf: dired-x.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/dired-x.texi
 +-
 +-ebrowse : $(infodir)/ebrowse
 +-$(infodir)/ebrowse: ebrowse.texi
 +-     cd $(srcdir); $(MAKEINFO) ebrowse.texi
 +-ebrowse.dvi: ebrowse.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/ebrowse.texi
 +-ebrowse.pdf: ebrowse.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/ebrowse.texi
 +-
 +-ede : $(infodir)/ede
 +-$(infodir)/ede: ede.texi
 +-     cd $(srcdir); $(MAKEINFO) ede.texi
 +-ede.dvi: ede.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/ede.texi
 +-ede.pdf: ede.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/ede.texi
 +-
 +-ediff : $(infodir)/ediff
 +-$(infodir)/ediff: ediff.texi
 +-     cd $(srcdir); $(MAKEINFO) ediff.texi
 +-ediff.dvi: ediff.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/ediff.texi
 +-ediff.pdf: ediff.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/ediff.texi
 +-
 +-edt : $(infodir)/edt
 +-$(infodir)/edt: edt.texi
 +-     cd $(srcdir); $(MAKEINFO) edt.texi
 +-edt.dvi: edt.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/edt.texi
 +-edt.pdf: edt.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/edt.texi
 +-
 +-eieio : $(infodir)/eieio
 +-$(infodir)/eieio: eieio.texi
 +-     cd $(srcdir); $(MAKEINFO) eieio.texi
 +-eieio.dvi: eieio.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/eieio.texi
 +-eieio.pdf: eieio.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/eieio.texi
 +-
 +-emacs-mime : $(infodir)/emacs-mime
 +-$(infodir)/emacs-mime: emacs-mime.texi
 +-     cd $(srcdir); $(MAKEINFO) --enable-encoding emacs-mime.texi
 +-emacs-mime.dvi: emacs-mime.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/emacs-mime.texi
 +-emacs-mime.pdf: emacs-mime.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/emacs-mime.texi
 +-
 +-epa : $(infodir)/epa
 +-$(infodir)/epa: epa.texi
 +-     cd $(srcdir); $(MAKEINFO) epa.texi
 +-epa.dvi: epa.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/epa.texi
 +-epa.pdf: epa.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/epa.texi
 +-
 +-erc : $(infodir)/erc
 +-$(infodir)/erc: erc.texi
 +-     cd $(srcdir); $(MAKEINFO) erc.texi
 +-erc.dvi: erc.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/erc.texi
 +-erc.pdf: erc.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/erc.texi
 +-
 +-eshell : $(infodir)/eshell
 +-$(infodir)/eshell: eshell.texi
 +-     cd $(srcdir); $(MAKEINFO) eshell.texi
 +-eshell.dvi: eshell.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/eshell.texi
 +-eshell.pdf: eshell.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/eshell.texi
 +-
 +-eudc : $(infodir)/eudc
 +-$(infodir)/eudc: eudc.texi
 +-     cd $(srcdir); $(MAKEINFO) eudc.texi
 +-eudc.dvi: eudc.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/eudc.texi
 +-eudc.pdf: eudc.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/eudc.texi
 +-
 + efaq : $(infodir)/efaq
 + $(infodir)/efaq: faq.texi
 +      cd $(srcdir); $(MAKEINFO) faq.texi
 +@@ -365,249 +124,6 @@ faq.dvi: faq.texi
 + faq.pdf: faq.texi
 +      $(ENVADD) $(TEXI2PDF) ${srcdir}/faq.texi
 + 
 +-flymake : $(infodir)/flymake
 +-$(infodir)/flymake: flymake.texi
 +-     cd $(srcdir); $(MAKEINFO) flymake.texi
 +-flymake.dvi: flymake.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/flymake.texi
 +-flymake.pdf: flymake.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/flymake.texi
 +-
 +-forms : $(infodir)/forms
 +-$(infodir)/forms: forms.texi
 +-     cd $(srcdir); $(MAKEINFO) forms.texi
 +-forms.dvi: forms.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/forms.texi
 +-forms.pdf: forms.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/forms.texi
 +-
 +-# gnus/message/emacs-mime/sieve/pgg are part of Gnus:
 +-gnus : $(infodir)/gnus
 +-$(infodir)/gnus: gnus.texi gnus-faq.texi
 +-     cd $(srcdir); $(MAKEINFO) gnus.texi
 +-gnus.dvi: gnus.texi gnus-faq.texi
 +-     sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
 +-     $(ENVADD) $(TEXI2DVI) gnustmp.texi
 +-     cp gnustmp.dvi $*.dvi
 +-     rm gnustmp.*
 +-gnus.pdf: gnus.texi gnus-faq.texi
 +-     sed -e '/@iflatex/,/@end iflatex/d' ${srcdir}/gnus.texi > gnustmp.texi
 +-     $(ENVADD) $(TEXI2PDF) gnustmp.texi
 +-     cp gnustmp.pdf $@
 +-     rm gnustmp.*
 +-
 +-# This is produced with --no-split to avoid making files whose
 +-# names clash on DOS 8+3 filesystems
 +-idlwave : $(infodir)/idlwave
 +-$(infodir)/idlwave: idlwave.texi
 +-     cd $(srcdir); $(MAKEINFO) --no-split idlwave.texi
 +-idlwave.dvi: idlwave.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/idlwave.texi
 +-idlwave.pdf: idlwave.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/idlwave.texi
 +-
 +-# The following target uses an explicit -o switch to work around
 +-# the @setfilename directive in info.texi, which is required for
 +-# the Texinfo distribution.
 +-###info : $(infodir)/info   # circular!
 +-$(infodir)/info: info.texi
 +-     cd $(srcdir); $(MAKEINFO) --no-split info.texi -o $@
 +-info.dvi: info.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/info.texi
 +-info.pdf: info.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/info.texi
 +-
 +-mairix-el : $(infodir)/mairix-el
 +-$(infodir)/mairix-el: mairix-el.texi
 +-     cd $(srcdir); $(MAKEINFO) mairix-el.texi
 +-mairix-el.dvi: mairix-el.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/mairix-el.texi
 +-mairix-el.pdf: mairix-el.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/mairix-el.texi
 +-
 +-message : $(infodir)/message
 +-$(infodir)/message: message.texi
 +-     cd $(srcdir); $(MAKEINFO) message.texi
 +-message.dvi: message.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/message.texi
 +-message.pdf: message.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/message.texi
 +-
 +-mh-e : $(infodir)/mh-e
 +-$(infodir)/mh-e: mh-e.texi
 +-     cd $(srcdir); $(MAKEINFO) mh-e.texi
 +-mh-e.dvi: mh-e.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/mh-e.texi
 +-mh-e.pdf: mh-e.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/mh-e.texi
 +-
 +-newsticker : $(infodir)/newsticker
 +-$(infodir)/newsticker: newsticker.texi
 +-     cd $(srcdir); $(MAKEINFO) newsticker.texi
 +-newsticker.dvi: newsticker.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/newsticker.texi
 +-newsticker.pdf: newsticker.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/newsticker.texi
 +-
 +-nxml-mode : $(infodir)/nxml-mode
 +-$(infodir)/nxml-mode: nxml-mode.texi
 +-     cd $(srcdir); $(MAKEINFO) nxml-mode.texi
 +-nxml-mode.dvi: nxml-mode.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/nxml-mode.texi
 +-nxml-mode.pdf: nxml-mode.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/nxml-mode.texi
 +-
 +-org : $(infodir)/org
 +-$(infodir)/org: org.texi
 +-     cd $(srcdir); $(MAKEINFO) org.texi
 +-org.dvi: org.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/org.texi
 +-org.pdf: org.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/org.texi
 +-
 +-pcl-cvs : $(infodir)/pcl-cvs
 +-$(infodir)/pcl-cvs: pcl-cvs.texi
 +-     cd $(srcdir); $(MAKEINFO) pcl-cvs.texi
 +-pcl-cvs.dvi: pcl-cvs.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/pcl-cvs.texi
 +-pcl-cvs.pdf: pcl-cvs.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/pcl-cvs.texi
 +-
 +-pgg : $(infodir)/pgg
 +-$(infodir)/pgg: pgg.texi
 +-     cd $(srcdir); $(MAKEINFO) pgg.texi
 +-pgg.dvi: pgg.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/pgg.texi
 +-pgg.pdf: pgg.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/pgg.texi
 +-
 +-rcirc : $(infodir)/rcirc
 +-$(infodir)/rcirc: rcirc.texi
 +-     cd $(srcdir); $(MAKEINFO) rcirc.texi
 +-rcirc.dvi: rcirc.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/rcirc.texi
 +-rcirc.pdf: rcirc.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/rcirc.texi
 +-
 +-reftex : $(infodir)/reftex
 +-$(infodir)/reftex: reftex.texi
 +-     cd $(srcdir); $(MAKEINFO) reftex.texi
 +-reftex.dvi: reftex.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/reftex.texi
 +-reftex.pdf: reftex.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/reftex.texi
 +-
 +-remember : $(infodir)/remember
 +-$(infodir)/remember: remember.texi
 +-     cd $(srcdir); $(MAKEINFO) remember.texi
 +-remember.dvi: remember.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/remember.texi
 +-remember.pdf: remember.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/remember.texi
 +-
 +-sasl : $(infodir)/sasl
 +-$(infodir)/sasl: sasl.texi
 +-     cd $(srcdir); $(MAKEINFO) sasl.texi
 +-sasl.dvi: sasl.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/sasl.texi
 +-sasl.pdf: sasl.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/sasl.texi
 +-
 +-sc : $(infodir)/sc
 +-$(infodir)/sc: sc.texi
 +-     cd $(srcdir); $(MAKEINFO) sc.texi
 +-sc.dvi: sc.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/sc.texi
 +-sc.pdf: sc.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/sc.texi
 +-
 +-semantic : $(infodir)/semantic
 +-$(infodir)/semantic: semantic.texi sem-user.texi
 +-     cd $(srcdir); $(MAKEINFO) semantic.texi
 +-semantic.dvi: semantic.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/semantic.texi
 +-semantic.pdf: semantic.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/semantic.texi
 +-
 +-ses : $(infodir)/ses
 +-$(infodir)/ses: ses.texi
 +-     cd $(srcdir); $(MAKEINFO) ses.texi
 +-ses.dvi: ses.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/ses.texi
 +-ses.pdf: ses.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/ses.texi
 +-
 +-sieve : $(infodir)/sieve
 +-$(infodir)/sieve: sieve.texi
 +-     cd $(srcdir); $(MAKEINFO) sieve.texi
 +-sieve.dvi: sieve.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/sieve.texi
 +-sieve.pdf: sieve.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/sieve.texi
 +-
 +-smtpmail : $(infodir)/smtpmail
 +-$(infodir)/smtpmail: smtpmail.texi
 +-     cd $(srcdir); $(MAKEINFO) smtpmail.texi
 +-smtpmail.dvi: smtpmail.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/smtpmail.texi
 +-smtpmail.pdf: smtpmail.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/smtpmail.texi
 +-
 +-speedbar : $(infodir)/speedbar
 +-$(infodir)/speedbar: speedbar.texi
 +-     cd $(srcdir); $(MAKEINFO) speedbar.texi
 +-speedbar.dvi: speedbar.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/speedbar.texi
 +-speedbar.pdf: speedbar.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/speedbar.texi
 +-
 +-tramp : $(infodir)/tramp
 +-$(infodir)/tramp: tramp.texi trampver.texi
 +-     cd $(srcdir); $(MAKEINFO) -D emacs tramp.texi
 +-tramp.dvi: tramp.texi trampver.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/tramp.texi
 +-tramp.pdf: tramp.texi trampver.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/tramp.texi
 +-
 +-url : $(infodir)/url
 +-$(infodir)/url: url.texi
 +-     cd $(srcdir); $(MAKEINFO) url.texi
 +-url.dvi: url.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/url.texi
 +-url.pdf: url.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/url.texi
 +-
 +-vip : $(infodir)/vip
 +-$(infodir)/vip: vip.texi
 +-     cd $(srcdir); $(MAKEINFO) vip.texi
 +-vip.dvi: vip.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/vip.texi
 +-vip.pdf: vip.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/vip.texi
 +-
 +-viper : $(infodir)/viper
 +-$(infodir)/viper: viper.texi
 +-     cd $(srcdir); $(MAKEINFO) viper.texi
 +-viper.dvi: viper.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/viper.texi
 +-viper.pdf: viper.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/viper.texi
 +-
 +-widget : $(infodir)/widget
 +-$(infodir)/widget: widget.texi
 +-     cd $(srcdir); $(MAKEINFO) widget.texi
 +-widget.dvi: widget.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/widget.texi
 +-widget.pdf: widget.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/widget.texi
 +-
 +-woman : $(infodir)/woman
 +-$(infodir)/woman: woman.texi
 +-     cd $(srcdir); $(MAKEINFO) woman.texi
 +-woman.dvi: woman.texi
 +-     $(ENVADD) $(TEXI2DVI) ${srcdir}/woman.texi
 +-woman.pdf: woman.texi
 +-     $(ENVADD) $(TEXI2PDF) ${srcdir}/woman.texi
 + 
 + 
 + mostlyclean:
 +diff --git a/lisp/help.el b/lisp/help.el
 +index 97690ea..482b4a1 100644
 +--- a/lisp/help.el
 ++++ b/lisp/help.el
 +@@ -301,6 +301,14 @@ If that doesn't give a function, return nil."
 +   (goto-address-mode 1)
 +   (goto-char (point-min)))
 + 
 ++(defun debian-expand-file-name-dfsg (filename)
 ++  "Apply expand-file-name to FILENAME.
 ++If expand-file-name does not find a file, append `.dfsg' and try again."
 ++  (let ((file (expand-file-name filename data-directory)))
 ++    (if (file-exists-p file)
 ++        file
 ++      (expand-file-name (concat file ".dfsg") data-directory))))
 ++
 + (defun describe-distribution ()
 +   "Display info on how to obtain the latest version of GNU Emacs."
 +   (interactive)
 +@@ -314,7 +322,7 @@ If that doesn't give a function, return nil."
 + (defun describe-gnu-project ()
 +   "Display info on the GNU project."
 +   (interactive)
 +-  (view-help-file "THE-GNU-PROJECT"))
 ++  (view-help-file (debian-expand-file-name-dfsg "THE-GNU-PROJECT")))
 + 
 + (define-obsolete-function-alias 'describe-project 'describe-gnu-project "22.2")
 + 
index 95cdac10e4aeea9ec9ada8ba5280651fe81e7dc2,0000000000000000000000000000000000000000..baf030396e00224384ff7435d1f5a1451269ce2b
mode 100644,000000..100644
--- /dev/null
@@@ -1,32 -1,0 +1,29 @@@
- -- 
- 1.7.6.3
 +From 173ac6bf5b4001dee0bf22491df502c6e4d12588 Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:25 -0500
 +Subject: Adjust documentation references for Debian.
 +
 +Various documentation references have been adjusted for Debian.
 +
 +References to /usr/local/... have been changed to /usr/... as
 +appropriate, etc.
 +---
 + etc/NEWS |    5 +++++
 + 1 files changed, 5 insertions(+), 0 deletions(-)
 +
 +diff --git a/etc/NEWS b/etc/NEWS
 +index 7c5c4be..ef968cf 100644
 +--- a/etc/NEWS
 ++++ b/etc/NEWS
 +@@ -14,6 +14,11 @@ for changes in older Emacs versions.
 + You can narrow news to a specific version by calling `view-emacs-news'
 + with a prefix argument or by typing C-u C-h C-n.
 + 
 ++ \f
 ++* Debian specific changes to Emacs
 ++
 ++Please see /usr/share/doc/emacs23-common/README.Debian.gz.
 ++
 + \f
 + * Installation Changes in Emacs 23.3
 + 
index 1b68e5d1dfb5c463fd56eb4bbd8bd9c2b0f3dbb7,0000000000000000000000000000000000000000..3e97c13ce31781bf980a8cd1bbd140b8e34a6f26
mode 100644,000000..100644
--- /dev/null
@@@ -1,52 -1,0 +1,49 @@@
- -- 
- 1.7.6.3
 +From 0f624911022e9a8a544eb527054c6178fe713100 Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:26 -0500
 +Subject: Cause the build to fail if liblockfile isn't selected for movemail.
 +
 +The build will fail if liblockfile isn't selected for movemail.
 +
 +This makes sure the Debian Emacs won't accidentally be built with the
 +wrong locking strategy.  To disable this check, comment out
 +require-movemail-use-liblockfile.diff in debian/patches/series.
 +
 +Author: Rob Browning <rlb@defaultvalue.org>
 +Added-by: Rob Browning <rlb@defaultvalue.org>
 +---
 + lib-src/movemail.c |    4 ++++
 + src/s/bsd-common.h |    4 ++++
 + 2 files changed, 8 insertions(+), 0 deletions(-)
 +
 +diff --git a/lib-src/movemail.c b/lib-src/movemail.c
 +index 5fcc6de..58add49 100644
 +--- a/lib-src/movemail.c
 ++++ b/lib-src/movemail.c
 +@@ -166,6 +166,10 @@ int mbx_delimit_end ();
 + /* Nonzero means this is name of a lock file to delete on fatal error.  */
 + char *delete_lockname;
 + 
 ++#ifndef MAIL_USE_MAILLOCK
 ++#error "Debian requires that mail locking be handled by liblockfile."
 ++#endif /* ndef MAIL_USE_MAILLOCK */
 ++
 + int
 + main (argc, argv)
 +      int argc;
 +diff --git a/src/s/bsd-common.h b/src/s/bsd-common.h
 +index 7889255..56fcb4a 100644
 +--- a/src/s/bsd-common.h
 ++++ b/src/s/bsd-common.h
 +@@ -66,7 +66,11 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 +    The alternative is that a lock file named
 +    /usr/spool/mail/$USER.lock.  */
 + 
 ++/* conditional copied from gnu-linux.h */
 ++#if !((defined (HAVE_LIBMAIL) || defined (HAVE_LIBLOCKFILE)) && \
 ++      defined (HAVE_MAILLOCK_H))
 + #define MAIL_USE_FLOCK
 ++#endif
 + 
 + /* Define CLASH_DETECTION if you want lock files to be written
 +    so that Emacs can tell instantly when you try to modify
index 3a88d3c262eec9916d579d5cbc907cd370ca82a5,0000000000000000000000000000000000000000..9fd8add5e57bb8018375fab91a2ccf97b34747c5
mode 100644,000000..100644
--- /dev/null
@@@ -1,112 -1,0 +1,109 @@@
- -- 
- 1.7.6.3
 +From 7ab2699f68cd8227e58bc2177cc48b4239eb929e Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:27 -0500
 +Subject: Avoid silently losing mail via fakemail.
 +
 +An attempt is made to avoid silently losing mail via fakemail.
 +
 +This fix attempts to avoid a situation where Emacs can silently lose
 +mail.  This can occur if sendmail.el (at least) falls back to
 +fakemail, and the underlying binary (MAIL_PROGRAM_NAME) that fakemail
 +is configured to use doesn't exist.  Unless mail-interactive is true,
 +Emacs won't wait for the mailer and so won't know that fakemail
 +failed.
 +
 +For now, Debian sets fakemail's MAIL_PROGRAM_NAME to /usr/bin/mail
 +(which is the correct value for Debian systems) rather than /bin/mail.
 +Debian also adjusts Emacs to test whether or not /usr/bin/mail exists
 +and is executable.  If either of these tests fail, then
 +mail-interactive is set to t.  That should ensure that a user will
 +actually see an error if they attempt to use the broken fakemail.
 +
 +Note that Debian actually forces the MAIL_PROGRAM_NAME value to
 +/usr/bin/mail.  The build will fail if any other value is specified.
 +This is done to ensure that MAIL_PROGRAM_NAME isn't accidentally set
 +to some other value during the build process.  If this is undesirable
 +for some reason, just comment out avoid-fakemail-loss.diff in
 +debian/patches/series.
 +
 +Author: Rob Browning <rlb@defaultvalue.org>
 +Added-by: Rob Browning <rlb@defaultvalue.org>
 +---
 + lib-src/fakemail.c    |    6 ++++--
 + lisp/gnus/message.el  |    8 +++++++-
 + lisp/mail/feedmail.el |    7 ++++++-
 + lisp/mail/sendmail.el |    7 ++++++-
 + 4 files changed, 23 insertions(+), 5 deletions(-)
 +
 +diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c
 +index f83c0fb..5c5fb6d 100644
 +--- a/lib-src/fakemail.c
 ++++ b/lib-src/fakemail.c
 +@@ -136,8 +136,10 @@ struct linebuffer lb;
 + #define NIL ((line_list) NULL)
 + #define INITIAL_LINE_SIZE 200
 + 
 +-#ifndef MAIL_PROGRAM_NAME
 +-#define MAIL_PROGRAM_NAME "/bin/mail"
 ++#ifdef MAIL_PROGRAM_NAME
 ++#error "Debian assumption violated -- see avoid-fakemail-mail-loss.diff"
 ++#else
 ++#define MAIL_PROGRAM_NAME "/usr/bin/mail"
 + #endif
 + 
 + static char *my_name;
 +diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el
 +index 63fcf50..d6a417a 100644
 +--- a/lisp/gnus/message.el
 ++++ b/lisp/gnus/message.el
 +@@ -4609,7 +4609,13 @@ If you always want Gnus to send messages in one piece, set
 +                                   "/usr/lib/sendmail")
 +                                  ((file-exists-p "/usr/ucblib/sendmail")
 +                                   "/usr/ucblib/sendmail")
 +-                                 (t "fakemail"))
 ++                                 (t
 ++                                     (if (not (file-executable-p
 ++                                               "/usr/bin/mail"))
 ++                                         (progn
 ++                                           (message "/usr/bin/mail is not an executable.  Setting mail-interactive to t.")
 ++                                           (setq mail-interactive t)))
 ++                                     "fakemail"))
 +                            nil errbuf nil "-oi")
 +                      message-sendmail-extra-arguments
 +                      ;; Always specify who from,
 +diff --git a/lisp/mail/feedmail.el b/lisp/mail/feedmail.el
 +index 77d82f6..29cc891 100644
 +--- a/lisp/mail/feedmail.el
 ++++ b/lisp/mail/feedmail.el
 +@@ -1327,7 +1327,12 @@ complicated cases."
 +                            "/usr/lib/sendmail")
 +                           ((file-exists-p "/usr/ucblib/sendmail")
 +                            "/usr/ucblib/sendmail")
 +-                          (t "fakemail"))
 ++                          (t
 ++                              (if (not (file-executable-p "/usr/bin/mail"))
 ++                                  (progn
 ++                                    (message "/usr/bin/mail is not an executable.  Setting mail-interactive to t.")
 ++                                    (setq mail-interactive t)))
 ++                              "fakemail"))
 +                     nil errors-to nil "-oi" "-t")
 +               ;; provide envelope "from" to sendmail; results will vary
 +               (list "-f" user-mail-address)
 +diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
 +index 8cd6503..1adc2ca 100644
 +--- a/lisp/mail/sendmail.el
 ++++ b/lisp/mail/sendmail.el
 +@@ -52,7 +52,12 @@
 +     ((file-exists-p "/usr/sbin/sendmail") "/usr/sbin/sendmail")
 +     ((file-exists-p "/usr/lib/sendmail") "/usr/lib/sendmail")
 +     ((file-exists-p "/usr/ucblib/sendmail") "/usr/ucblib/sendmail")
 +-    (t "fakemail"))                  ;In ../etc, to interface to /bin/mail.
 ++    (t
 ++     (if (not (file-executable-p "/usr/bin/mail"))
 ++         (progn
 ++           (message "/usr/bin/mail is not an executable.  Setting mail-interactive to t.")
 ++           (setq mail-interactive t)))
 ++     "fakemail"))                    ;In ../etc, to interface to /bin/mail.
 +   "Program used to send messages."
 +   :group 'mail
 +   :type 'file)
index 1cf9f04260ec03687e352da232f36b09c5b0b92b,0000000000000000000000000000000000000000..97736719dde0d48bd4a15c949899eab424fc101f
mode 100644,000000..100644
--- /dev/null
@@@ -1,31 -1,0 +1,28 @@@
- -- 
- 1.7.6.3
 +From d72d66a692c002d0216f986ad4d76fa4eaaabc5d Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:28 -0500
 +Subject: Modify the output of (version) to indicate Debian modifications.
 +
 +The output of (version) has been modified to indicate Debian modifications.
 +
 +Author: Rob Browning <rlb@defaultvalue.org>
 +Added-by: Rob Browning <rlb@defaultvalue.org>
 +---
 + lisp/version.el |    4 ++--
 + 1 files changed, 2 insertions(+), 2 deletions(-)
 +
 +diff --git a/lisp/version.el b/lisp/version.el
 +index 92eb564..f9103b1 100644
 +--- a/lisp/version.el
 ++++ b/lisp/version.el
 +@@ -56,8 +56,8 @@ to the system configuration; look at `system-configuration' instead."
 +   (interactive "P")
 +   (let ((version-string
 +          (format (if (not (called-interactively-p 'interactive))
 +-                  "GNU Emacs %s (%s%s%s)\n of %s on %s"
 +-                "GNU Emacs %s (%s%s%s) of %s on %s")
 ++                  "GNU Emacs %s (%s%s%s)\n of %s on %s, modified by Debian"
 ++                "GNU Emacs %s (%s%s%s) of %s on %s, modified by Debian")
 +                  emacs-version
 +               system-configuration
 +               (cond ((featurep 'motif)
index d435e9eecdbeb0cafa7a4db690920e301dd174cc,0000000000000000000000000000000000000000..b367db4b10fe0da9dad2bc1ae29cd0a864530d1d
mode 100644,000000..100644
--- /dev/null
@@@ -1,44 -1,0 +1,41 @@@
- -- 
- 1.7.6.3
 +From 0d990c036114c29958aa694f5d57a1d49ab07254 Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:29 -0500
 +Subject: Look for NEWS in order to find etc/ rather than GNU.
 +
 +Emacs will now look for NEWS in order to find etc/ rather than GNU.
 +
 +Since Debian doesn't include GNU in the Debian packages (the common
 +licenses are in /usr/share/common-licenses), Emacs will now look for
 +NEWS to find the etc directory instead of GNU.
 +
 +Provided-by: Sven Joachim <svenjoac@gmx.de>
 +Originally-reported-by: Bernhard Michler <Boregard@gmx.net>
 +Date: Mon, 28 Apr 2008 11:20:23 +0200
 +Added-by: Rob Browning <rlb@defaultvalue.org>
 +Status: Debian specific
 +---
 + src/callproc.c |    4 ++--
 + 1 files changed, 2 insertions(+), 2 deletions(-)
 +
 +diff --git a/src/callproc.c b/src/callproc.c
 +index ffb7a7c..812c345 100644
 +--- a/src/callproc.c
 ++++ b/src/callproc.c
 +@@ -1509,14 +1509,14 @@ init_callproc ()
 + 
 +       srcdir = Fexpand_file_name (build_string ("../src/"),
 +                                build_string (PATH_DUMPLOADSEARCH));
 +-      tem = Fexpand_file_name (build_string ("GNU"), Vdata_directory);
 ++      tem = Fexpand_file_name (build_string ("NEWS"), Vdata_directory);
 +       tem1 = Ffile_exists_p (tem);
 +       if (!NILP (Fequal (srcdir, Vinvocation_directory)) || NILP (tem1))
 +      {
 +        Lisp_Object newdir;
 +        newdir = Fexpand_file_name (build_string ("../etc/"),
 +                                    build_string (PATH_DUMPLOADSEARCH));
 +-       tem = Fexpand_file_name (build_string ("GNU"), newdir);
 ++       tem = Fexpand_file_name (build_string ("NEWS"), newdir);
 +        tem1 = Ffile_exists_p (tem);
 +        if (!NILP (tem1))
 +          Vdata_directory = newdir;
index 9b770729ced03bdf907f1c627274d602e6e95e3b,0000000000000000000000000000000000000000..abff28438599fe1bbce20d77cf27edc61d632665
mode 100644,000000..100644
--- /dev/null
@@@ -1,35 -1,0 +1,32 @@@
- -- 
- 1.7.6.3
 +From 13c08a7c91dfd6a6334d7f06d2e7b1dbb7bfb208 Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:30 -0500
 +Subject: Invoke the correct xmlstarlet executable on Debian systems.
 +
 +Emacs now invokes the correct xmlstarlet executable on Debian systems.
 +
 +Emacs invokes xmlstarlet rather than xml, which is the correct
 +executable name on Debian systems.
 +
 +Provided-by: Jussi Judin <jjudin+debian@iki.fi>
 +Date: Sat, 20 Oct 2007 14:42:02 UTC
 +Added-by: Rob Browning <rlb@defaultvalue.org>
 +Status: Debian specific
 +Bug: 447378
 +---
 + lisp/progmodes/flymake.el |    2 +-
 + 1 files changed, 1 insertions(+), 1 deletions(-)
 +
 +diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el
 +index da28a2e..81f6017 100644
 +--- a/lisp/progmodes/flymake.el
 ++++ b/lisp/progmodes/flymake.el
 +@@ -1760,7 +1760,7 @@ Use CREATE-TEMP-F for creating temp copy."
 + 
 + ;;;; xml-specific init-cleanup routines
 + (defun flymake-xml-init ()
 +-  (list "xml" (list "val" (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace))))
 ++  (list "xmlstarlet" (list "val" (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace))))
 + 
 + (provide 'flymake)
 + 
index 2d8b5385451a25ba71e41481a768f4e5de9c8e23,0000000000000000000000000000000000000000..54a36506ff526c3f3e03c30a973454f4af8a9fae
mode 100644,000000..100644
--- /dev/null
@@@ -1,35 -1,0 +1,32 @@@
- -- 
- 1.7.6.3
 +From feae0003be258bfed4dee8d6706462a0624068da Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 4 Apr 2011 22:46:32 -0500
 +Subject: Fix startup hang on Debian GNU/kFreeBSD.
 +
 +Emacs should no longer hang on startup on Debian GNU/kFreeBSD.
 +
 +Date: Thu Aug 12 04:21:09 UTC 2010
 +Added-by: Rob Browning <rlb@defaultvalue.org>
 +Provided-By: Petr Salinger <Petr.Salinger@seznam.cz>
 +Bug: 559392
 +Status: new
 +---
 + src/s/gnu-kfreebsd.h |    5 +++++
 + 1 files changed, 5 insertions(+), 0 deletions(-)
 +
 +diff --git a/src/s/gnu-kfreebsd.h b/src/s/gnu-kfreebsd.h
 +index a1e8c02..89563de 100644
 +--- a/src/s/gnu-kfreebsd.h
 ++++ b/src/s/gnu-kfreebsd.h
 +@@ -5,6 +5,11 @@
 + #undef SYSTEM_TYPE
 + #define SYSTEM_TYPE "gnu/kfreebsd" /* All the best software is free */
 + 
 ++#undef INTERRUPT_INPUT
 ++#define BROKEN_SIGIO
 ++#define BROKEN_SIGURG
 ++#define BROKEN_SIGPOLL
 ++
 + #define NO_TERMIO               /* use only <termios.h> */
 + 
 + /* arch-tag: 8d098200-2586-469e-99ab-6d092c035e03
index 17553afa9e5739343646d8b132f824b222fbe15d,0000000000000000000000000000000000000000..5a06b6c090d583a3380cbbd6b9b2300bfac2f4ca
mode 100644,000000..100644
--- /dev/null
@@@ -1,42 -1,0 +1,39 @@@
- -- 
- 1.7.6.3
 +From cc4f64d8930553f0b84ec613f626f5317df303ab Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Wed, 6 Apr 2011 21:44:42 -0500
 +Subject: Don't clear FONTCONFIG_LIBS and FONTCONFIG_CFLAGS in configure.
 +
 +The build should no longer fail when linking with --no-add-needed
 +
 +Previously, configure would clear FONTCONFIG_LIBS and
 +FONTCONFIG_CFLAGS.  This would break the build when compiling with a
 +linker that defaults to --no-add-needed.  For example:
 +
 +  /usr/bin/ld: ftfont.o: undefined reference to symbol 'FcInit'
 +
 +configure should no longer clear these variables.
 +
 +Author: Matthias Klose <doko@ubuntu.com>
 +Date: Mon, 28 Feb 2011 01:02:41 +0100
 +Added-by: Rob Browning <rlb@defaultvalue.org>
 +Closes: #554324
 +---
 + configure.in |    4 ----
 + 1 files changed, 0 insertions(+), 4 deletions(-)
 +
 +diff --git a/configure.in b/configure.in
 +index baacfe4..0639715 100644
 +--- a/configure.in
 ++++ b/configure.in
 +@@ -2044,11 +2044,7 @@ if test "${HAVE_X11}" = "yes"; then
 +     ## We used to allow building with FreeType and without Xft.
 +     ## However, the ftx font backend driver is not in good shape.
 +     if test "${HAVE_XFT}" = "yes"; then
 +-      dnl As we use Xft, we anyway use freetype.
 +-      dnl There's no need for additional CFLAGS and LIBS.
 +       HAVE_FREETYPE=yes
 +-      FONTCONFIG_CFLAGS=
 +-      FONTCONFIG_LIBS=
 +     fi
 + 
 +     HAVE_LIBOTF=no
index b8740ad5dd9244aafa298a82a86a78c8a910fc1c,0000000000000000000000000000000000000000..5bdbfb9aa5bda1eba7d4fd8002eee3d6f1880938
mode 100644,000000..100644
--- /dev/null
@@@ -1,43 -1,0 +1,40 @@@
- -- 
- 1.7.6.3
 +From 136cc18a735081b12da58fbcfec5092fe8e7826d Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Fri, 8 Apr 2011 22:50:51 -0500
 +Subject: Fix a tty-related preprocessor inclusion error affecting GNU/Hurd
 + systems.
 +
 +A problem with the preprocessor defines in src/term.c has been fixed.
 +This problem would cause Emacs to fail on GNU/Hurd systems as follows:
 +
 +  $ emacs -nw
 +  emacs: Not a tty device: /dev/tty
 +
 +Author: Samuel Thibault <sthibault@debian.org>
 +Date: Thu, 20 Jan 2011 02:17:24 +0100
 +Applied-By: Rob Browning <rlb@defaultvalue.org>
 +Forwarded: bug-gnu-emacs@gnu.org
 +Closes: #610576
 +---
 + src/term.c |    3 +--
 + 1 files changed, 1 insertions(+), 2 deletions(-)
 +
 +diff --git a/src/term.c b/src/term.c
 +index 6d16a65..44e127e 100644
 +--- a/src/term.c
 ++++ b/src/term.c
 +@@ -3413,13 +3413,12 @@ init_tty (char *name, char *terminal_type, int must_succeed)
 +          if we don't have one at the moment.  */
 +       fd = emacs_open (name, O_RDWR | O_IGNORE_CTTY | O_NOCTTY, 0);
 +     else
 +-#else
 ++#endif /* O_IGNORE_CTTY */
 +       /* Alas, O_IGNORE_CTTY is a GNU extension that seems to be only
 +          defined on Hurd.  On other systems, we need to explicitly
 +          dissociate ourselves from the controlling tty when we want to
 +          open a frame on the same terminal.  */
 +       fd = emacs_open (name, O_RDWR | O_NOCTTY, 0);
 +-#endif /* O_IGNORE_CTTY */
 + 
 +     tty->name = xstrdup (name);
 +     terminal->name = xstrdup (name);
index 15dfec0b5ee566c4d0a01542cacd73d21ec8c6da,0000000000000000000000000000000000000000..18fe720ce993d6ec0546825f6b11f5d6205858dd
mode 100644,000000..100644
--- /dev/null
@@@ -1,32 -1,0 +1,29 @@@
- -- 
- 1.7.6.3
 +From 07daa825f4a4af9e269ace4071b86e6528412619 Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Sun, 10 Apr 2011 10:03:45 -0500
 +Subject: Expect 0 from kill() for zombies on GNU/Hurd.
 +
 +Emacs should no longer hang while waiting for child processes on GNU/Hurd.
 +
 +Author: Samuel Thibault <sthibault@debian.org>
 +Date: Mon, 31 Jan 2011 01:13:35 +0100
 +Applied-By: Rob Browning <rlb@defaultvalue.org>
 +Forwarded: bug-gnu-emacs@gnu.org
 +Closes: #611591
 +---
 + src/sysdep.c |    2 +-
 + 1 files changed, 1 insertions(+), 1 deletions(-)
 +
 +diff --git a/src/sysdep.c b/src/sysdep.c
 +index 1fbc061..3abb43f 100644
 +--- a/src/sysdep.c
 ++++ b/src/sysdep.c
 +@@ -411,7 +411,7 @@ wait_for_termination (pid)
 +   while (1)
 +     {
 + #ifdef subprocesses
 +-#if defined (BSD_SYSTEM) || defined (HPUX)
 ++#if (defined (BSD_SYSTEM) || defined (HPUX)) && !defined(__GNU__)
 +       /* Note that kill returns -1 even if the process is just a zombie now.
 +       But inevitably a SIGCHLD interrupt should be generated
 +       and child_sig will do wait3 and make the process go away. */
index 62d055b1ee4ab96ae7207855ba4a295bbfc0977a,0000000000000000000000000000000000000000..5b5230b12c5d6339a005637482be2d90db9b8a4e
mode 100644,000000..100644
--- /dev/null
@@@ -1,35 -1,0 +1,32 @@@
- -- 
- 1.7.6.3
 +From 5a055b561f5403a1a8e30d2d614cf51293aec5a2 Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Sun, 17 Apr 2011 12:26:59 -0500
 +Subject: Add i386 to cpp_undefs in configure.in to fix i386 multiarch builds.
 +
 +Multiarch builds should now work on i386.
 +
 +Multiarch builds failed on i386 because the toolchain triplet does not
 +match the multiarch directory (i686 != i386).
 +
 +Author: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 31 Jan 2011 01:13:35 +0100
 +Applied-By: Rob Browning <rlb@defaultvalue.org>
 +Forwarded: bug-gnu-emacs@gnu.org
 +Closes: #620795
 +---
 + configure.in |    2 +-
 + 1 files changed, 1 insertions(+), 1 deletions(-)
 +
 +diff --git a/configure.in b/configure.in
 +index 0639715..94efa35 100644
 +--- a/configure.in
 ++++ b/configure.in
 +@@ -3099,7 +3099,7 @@ test "${exec_prefix}" != NONE &&
 + # the C preprocessor to some helpful value like 1, or maybe the empty
 + # string.  Needless to say consequent macro substitutions are less
 + # than conducive to the makefile finding the correct directory.
 +-[cpp_undefs="`echo $srcdir $configuration $canonical unix |
 ++[cpp_undefs="`echo $srcdir $configuration $canonical unix i386 |
 +   sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/  *$//' \
 +   -e 's/  */ -U/g' -e 's/-U[0-9][^ ]*//g'`"]
 + 
index 7a94ba7f8e1699b285834763c458d187e14459df,0000000000000000000000000000000000000000..3d368f2be061ca238bf7d28534b4e9cf3902c2a1
mode 100644,000000..100644
--- /dev/null
@@@ -1,42 -1,0 +1,39 @@@
- -- 
- 1.7.6.3
 +From a81a47f989199e0705fdd7b2142dee04f497f721 Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Mon, 24 Oct 2011 22:29:59 -0500
 +Subject: Look for crt1.o in the correct multiarch location.
 +
 +The Emacs build should now be able to handle the fact that crt1.o is
 +no longer in /usr/lib.  It was moved to support multarch.
 +
 +Provided-by: Sven Joachim <svenjoac@gmx.de>
 +Date: Sat, 25 Jun 2011 08:25:48 +0200
 +Applied-by: Rob Browning <rlb@defaultvalue.org>
 +Bug-Debian: http://bugs.debian.org/629567
 +Applied-Upstream: http://lists.gnu.org/archive/html/emacs-diffs/2010-04/msg00325.html
 +---
 + src/s/gnu-linux.h |    4 ++--
 + 1 files changed, 2 insertions(+), 2 deletions(-)
 +
 +diff --git a/src/s/gnu-linux.h b/src/s/gnu-linux.h
 +index c13cb60..953341d 100644
 +--- a/src/s/gnu-linux.h
 ++++ b/src/s/gnu-linux.h
 +@@ -168,7 +168,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 + /* Ask GCC where to find libgcc.a.  */
 + #define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`
 + 
 +-#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
 ++#define START_FILES pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o
 + 
 + /* Here is how to find X Windows.  LD_SWITCH_X_SITE_AUX gives an -R option
 +    says where to find X windows at run time.  */
 +@@ -198,7 +198,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 + #define LIBS_DEBUG
 + #undef LIB_GCC
 + #define LIB_GCC
 +-#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
 ++#define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtn.o
 + 
 + /* Don't use -g in test compiles in configure.
 +    This is so we will use the same shared libs for that linking
index 5348526fd44f2847057588ac770a5e27d9097e5d,0000000000000000000000000000000000000000..af06a7d07692fd6a232b255221565b9650f209d4
mode 100644,000000..100644
--- /dev/null
@@@ -1,64 -1,0 +1,61 @@@
- -- 
- 1.7.6.3
 +From f6ec40aeab76b44285f6348e748e9c4f44474d19 Mon Sep 17 00:00:00 2001
 +From: Rob Browning <rlb@defaultvalue.org>
 +Date: Tue, 25 Oct 2011 19:52:51 -0500
 +Subject: Use CRT_DIR to find crt*.o on ppc64.
 +
 +The Emacs build should now look for crt*.o in the correct multiarch
 +location during ppc64 builds.
 +
 +Provided-by: Hiroyuki Yamamoto <yama1066@gmail.com>
 +Date: Wed, 26 Oct 2011 01:39:35 +0900
 +Applied-by: Rob Browning <rlb@defaultvalue.org>
 +Bug-Debian: http://bugs.debian.org/646609
 +---
 + configure.in   |    8 ++++----
 + src/m/macppc.h |    4 ++--
 + 2 files changed, 6 insertions(+), 6 deletions(-)
 +
 +diff --git a/configure.in b/configure.in
 +index 94efa35..f544aca 100644
 +--- a/configure.in
 ++++ b/configure.in
 +@@ -172,7 +172,7 @@ fi
 + CRT_DIR=
 + AC_ARG_WITH([crt-dir],dnl
 + [AS_HELP_STRING([--with-crt-dir=DIR],[directory containing crtn.o etc.
 +-This option is only used on x86-64 and s390x GNU/Linux architectures.])])
 ++This option is only used on x86-64, powerpc64 and s390x GNU/Linux architectures.])])
 + CRT_DIR="${with_crt_dir}"
 + 
 + AC_ARG_WITH([gnustep-conf],dnl
 +@@ -1006,11 +1006,11 @@ AC_CONFIG_LIBOBJ_DIR(src)
 + dnl Do this early because it can frob feature test macros for Unix-98 &c.
 + AC_SYS_LARGEFILE
 + 
 +-## Note: at present CRT_DIR is only used for amdx86-64 and ibms390x.
 ++## Note: at present CRT_DIR is only used for amdx86-64, powerpc64 and ibms390x.
 + ## Other machine types hard-code the location in src/[ms]/*.h.
 + case "${canonical}" in
 +-  x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
 +-   ## On x86-64 and s390x GNU/Linux distributions, the standard library
 ++  x86_64-*-linux-gnu* | powerpc64-*-linux-gnu* | s390x-*-linux-gnu* )
 ++   ## On x86-64, powerpc64 and s390x GNU/Linux distributions, the standard library
 +    ## can be in a variety of places.  We only try /usr/lib64 and /usr/lib.
 +    ## For anything else (eg /usr/lib32), it is up the user to specify
 +    ## the location (bug#5655).
 +diff --git a/src/m/macppc.h b/src/m/macppc.h
 +index c0fcae2..78ca68e 100644
 +--- a/src/m/macppc.h
 ++++ b/src/m/macppc.h
 +@@ -50,9 +50,9 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
 + #define LD_SWITCH_MACHINE_TEMACS -Xlinker -znocombreloc
 + #ifdef _ARCH_PPC64
 + #undef START_FILES
 +-#define START_FILES pre-crt0.o /usr/lib64/crt1.o /usr/lib64/crti.o
 ++#define START_FILES pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o
 + #undef LIB_STANDARD
 +-#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib64/crtn.o
 ++#define LIB_STANDARD -lgcc -lc -lgcc $(CRT_DIR)/crtn.o
 + #endif
 + #endif
 + 
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..22caf87e8605e544a7faa62c6428e7082ea87d13
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,30 @@@
++From e46e3fe4cd794f1c1e50a5bc445d184e2f82ce38 Mon Sep 17 00:00:00 2001
++From: Rob Browning <rlb@defaultvalue.org>
++Date: Sun, 29 Jan 2012 13:34:44 -0600
++Subject: Define POSIX_SIGNALS for GNU/Hurd.
++
++Emacs will now use POSIX signals on GNU/Hurd which avoids a build
++failure when a 15MiB-long write is interrupted by a signal, and Emacs
++hasn't set the SA_RESTART flag.
++
++Author: Samuel Thibault <sthibault@debian.org>
++Date: Sun, 4 Dec 2011 19:47:54 +0100
++Applied-By: Rob Browning <rlb@defaultvalue.org>
++Forwarded: bug-gnu-emacs@gnu.org
++Closes: #650976
++---
++ src/s/gnu.h |    2 ++
++ 1 files changed, 2 insertions(+), 0 deletions(-)
++
++diff --git a/src/s/gnu.h b/src/s/gnu.h
++index 6d3d20e..f0348d3 100644
++--- a/src/s/gnu.h
+++++ b/src/s/gnu.h
++@@ -83,5 +83,7 @@ along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.  */
++ #endif /* !_IO_STDIO_H */
++ #endif /* emacs */
++ 
+++#define POSIX_SIGNALS 1
+++
++ /* arch-tag: 577983d9-87a6-4922-b8f8-ff2b563714a4
++    (do not change this comment) */
index 63fef97a431dfcf40e52dcc5c763992b9ddc90f2,0000000000000000000000000000000000000000..21e9c3cc54a5232416c2720d3d4a4b83b7731ec5
mode 100644,000000..100644
--- /dev/null
@@@ -1,16 -1,0 +1,17 @@@
 +0001-Prefer-usr-share-info-emacs-23-over-usr-share-info.patch
 +0002-Run-debian-startup-and-set-debian-emacs-flavor.patch
 +0003-Remove-files-that-appear-to-be-incompatible-with-the.patch
 +0004-Adjust-documentation-references-for-Debian.patch
 +0005-Cause-the-build-to-fail-if-liblockfile-isn-t-selecte.patch
 +0006-Avoid-silently-losing-mail-via-fakemail.patch
 +0007-Modify-the-output-of-version-to-indicate-Debian-modi.patch
 +0008-Look-for-NEWS-in-order-to-find-etc-rather-than-GNU.patch
 +0009-Invoke-the-correct-xmlstarlet-executable-on-Debian-s.patch
 +0010-Fix-startup-hang-on-Debian-GNU-kFreeBSD.patch
 +0011-Don-t-clear-FONTCONFIG_LIBS-and-FONTCONFIG_CFLAGS-in.patch
 +0012-Fix-a-tty-related-preprocessor-inclusion-error-affec.patch
 +0013-Expect-0-from-kill-for-zombies-on-GNU-Hurd.patch
 +0014-Add-i386-to-cpp_undefs-in-configure.in-to-fix-i386-m.patch
 +0015-Look-for-crt1.o-in-the-correct-multiarch-location.patch
 +0016-Use-CRT_DIR-to-find-crt-.o-on-ppc64.patch
++0017-Define-POSIX_SIGNALS-for-GNU-Hurd.patch